package main

import (
	"fmt"
	"github.com/google/go-github/github"
)

func main() {
	client := github.NewClient(nil)
	// list languages used by specified user.
        opt := &github.RepositoryListOptions{Sort:"updated"}
	repos, _, err := client.Repositories.List("hooluupog", opt)
	if err != nil {
		fmt.Println(err)
	}
	for i := 0; i < len(repos); i++ {
		if repos[i].Name != nil  && repos[i].Language != nil {
			fmt.Printf("name:%s  Language:%s  Size:%d\n", *(repos[i].Name), *(repos[i].Language), *(repos[i].Size))
		}
	}
}